package com.project.service;

import com.alibaba.fastjson.JSONObject;
import com.project.entity.InternLog;

import java.util.List;

/**
 * Created by hasee on 2017/4/28.
 */
public interface InternlogService {
    InternLog findById(int id);
    int update(InternLog internLog);
    int add(InternLog internLog);
    int delete(int id);
    List<InternLog> findall();

    /**
     * author: WheelChen
     * date: 2017-5-16
     * function: 按条件查询实习日志
     * @param internLog
     * @return
     */
    List<InternLog> findByCondition(InternLog internLog);

    /**
     * author: WheelChen
     * date: 2017/8/4
     * function: 根据实习日志一条记录查找实习日志详细信息
     *
     * @param internLog 实习日志
     * @return
     */
    JSONObject findDetailOneByInternLog(InternLog internLog) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/8/5
     * function: 根据internAdvisor查找实习日志详情（即查看该老师指导的学生的实习日志） 根据实习日志条件查找
     *
     * @param internLog
     * @param internAdvisorUserId
     * @param pageSize
     * @param pageIndex
     * @return
     */
    JSONObject findDetailBatchByInternAdvisorCondition(InternLog internLog, int internAdvisorUserId,
                                                             int pageSize, int pageIndex) throws Exception;

    /**
     * author: WheelChen
     * date: 2017/9/19
     * function: 根据用户表idList批量删除
     *
     * @param userIdList
     * @return
     */
    int removeBatchByUserIdList(List userIdList);
}
